package com.aopeng.mapper;

import com.aopeng.entity.AopengExamination;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * @author 谢辉
 * @description 考卷表持久层
 * @data 2020/7/10
 */
@Repository //代表持久层
public interface AopengExaminationMapper extends BaseMapper<AopengExamination> {

    @Select("select count(school_name) from aopeng_examination where school_type = 1")
    int findSouthSchoolById();

    @Select("select count(school_name) from aopeng_examination where school_type = 1")
    int findNorthSchoolById();
}
